package com.baizhi.controller;

import com.baizhi.annotation.LogAnnotation;
import com.baizhi.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/menu")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @RequestMapping("/selectAll")
    @LogAnnotation(value = "访问页面后台",type = "selectAll")
    public List selectAll(){
        return menuService.selectAll();
    }
}
